/*
 * Copyright (C) 2010 Raimundo Mirisola (raimundo.mirisola@gmail.com)
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 2 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */

package com.onerm.ui;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class RepListAdapter extends BaseAdapter {

  @Override
  public int getCount() {
    return 50;
  }

  @Override
  public Object getItem(int position) {
    return position;
  }

  @Override
  public long getItemId(int position) {
    return position;
  }

  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    final TextView tv;
    if (convertView != null) {
       tv = (TextView) convertView;
    } else {
       tv = new TextView(parent.getContext());
       tv.setTextSize(30);
    }
    tv.setText(String.format("%d", position));
    return tv;
  }
}
